﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 权限菜单项DTO
    /// </summary>
    public class OperationDto
    {
        public Guid Id { get; set; }
        [Display(Name="菜单编码：")]
        [Required(ErrorMessage = "{0}必填！")]
        public string Code { get; set; }
         [Display(Name = "菜单名称：")]
        [Required(ErrorMessage="{0}必填！")]
        public string OperationName { get; set; }
         [Display(Name = "图标路径：")]
         public string IconUrl { get; set; }
         [Display(Name = "菜单描述：")]
         public string Desc { get; set; }
         public Guid? PermissionID { get; set; }
         public Guid? ParentId { get; set; }
         [Display(Name = "排序数字：")]
         [Required(ErrorMessage = "{0}必填！")]
         public int OrderNum { get; set; }
         public virtual IList<OperationDto> ChildrenOperationDtos { get; set; }
         public virtual PermissionDto PermissionDto { get; set; }
    }
}
